package com.cvo.scrumtoolkit.client.entities;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class Project implements Serializable {
	
	private String projectname;
	private long Id;
	private String scrummaster;
	private List<BacklogItem> backlogItems;
	
	public Project(){
		backlogItems= new LinkedList<BacklogItem>();
	}
	
	public String getProjectname() {
		return projectname;
	}

	public void setProjectname(String projectname) {
		this.projectname = projectname;
	}

	public Long getId() {
		return Id;
	}

	public String getScrummaster() {
		return scrummaster;
	}

	public void setScrummaster(String scrummaster) {
		this.scrummaster = scrummaster;
	}

	//tijdelijke oplossing voor het aanmaken van projecten
	static long MaxId= 0;
	
	public static Project createProject(){
		Project project = new Project();
		project.Id=MaxId++;
		return project;
		}

	public List<BacklogItem> getBacklogItems() {
		return backlogItems;
	}

	public void setBacklogItem(BacklogItem backlogItem){
		backlogItems.add(backlogItem);
		
	}
		
	

}
